package p270jp.pxv.android.activity;

import android.content.ComponentCallbacks;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import java.io.Serializable;
import java.util.Objects;
import kotlin.NoWhenBranchMatchedException;
import p005a5.C0022b;
import p014ae.AbstractActivityC0067e0;
import p014ae.View$OnClickListenerC0046a;
import p014ae.View$OnClickListenerC0050b;
import p014ae.View$OnClickListenerC0054c;
import p014ae.View$OnClickListenerC0062d;
import p047bg.C1124a;
import p064c6.Preconditions;
import p079cl.AccountSettingEditModePresenter;
import p079cl.AccountSettingRegisterModePresenter;
import p079cl.AccountSettingRegisterPremiumModePresenter;
import p109dj.OnTextChangedListener;
import p116e.ActionBar;
import p134ei.AnalyticsAction;
import p134ei.AnalyticsScreenName;
import p134ei.PixivAnalytics;
import p189gn.AbstractC3435a;
import p209hg.AbstractC3607b;
import p209hg.AccountSettingContract;
import p210hh.PixivAccountManager;
import p216hn.Lambda;
import p216hn.Reflection;
import p270jp.pxv.android.R;
import p270jp.pxv.android.accountSetting.presentation.dialogEvent.PostAccountSettingWithPixivIdChange;
import p270jp.pxv.android.legacy.fragment.GenericDialogFragment;
import p270jp.pxv.android.legacy.fragment.PasswordInputFragment;
import p314lg.ActivityAccountSettingBinding;
import p325m0.MutabilityOwnership;
import p370ni.AccountEditActivityMode;
import p370ni.InfoType;
import p393of.C5453b;
import p436q6.StringMerger;
import p554uo.DefinitionParameters;
import p579vo.Qualifier;
import p603wm.AbstractC6949c;
import p639y6.C7296l;
import p639y6.C7301s;

/* compiled from: AccountSettingActivity.kt */
/* renamed from: jp.pxv.android.activity.AccountSettingActivity */
/* loaded from: classes2.dex */
public final class AccountSettingActivity extends AbstractActivityC0067e0 implements AbstractC3607b {

    /* renamed from: A */
    public static final /* synthetic */ int f18290A;

    /* renamed from: v */
    public AccountEditActivityMode f18291v;

    /* renamed from: w */
    public AccountSettingContract f18292w;

    /* renamed from: x */
    public ActivityAccountSettingBinding f18293x;

    /* renamed from: y */
    public final AbstractC6949c f18294y = Preconditions.m9802P(1, new C3989g(this, null, null));

    /* renamed from: z */
    public final AbstractC6949c f18295z = Preconditions.m9802P(1, new C3990h(this, null, null));

    /* compiled from: AccountSettingActivity.kt */
    /* renamed from: jp.pxv.android.activity.AccountSettingActivity$a */
    /* loaded from: classes2.dex */
    public static final class C3983a extends Lambda implements AbstractC3435a<DefinitionParameters> {
        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C3983a() {
            super(0);
            AccountSettingActivity.this = r1;
        }

        @Override // p189gn.AbstractC3435a
        public DefinitionParameters invoke() {
            return C0022b.m12183x(AccountSettingActivity.this);
        }
    }

    /* compiled from: AccountSettingActivity.kt */
    /* renamed from: jp.pxv.android.activity.AccountSettingActivity$b */
    /* loaded from: classes2.dex */
    public static final class C3984b extends Lambda implements AbstractC3435a<DefinitionParameters> {
        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C3984b() {
            super(0);
            AccountSettingActivity.this = r1;
        }

        @Override // p189gn.AbstractC3435a
        public DefinitionParameters invoke() {
            return C0022b.m12183x(AccountSettingActivity.this);
        }
    }

    /* compiled from: AccountSettingActivity.kt */
    /* renamed from: jp.pxv.android.activity.AccountSettingActivity$c */
    /* loaded from: classes2.dex */
    public static final class C3985c extends Lambda implements AbstractC3435a<DefinitionParameters> {
        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C3985c() {
            super(0);
            AccountSettingActivity.this = r1;
        }

        @Override // p189gn.AbstractC3435a
        public DefinitionParameters invoke() {
            return C0022b.m12183x(AccountSettingActivity.this);
        }
    }

    /* compiled from: AccountSettingActivity.kt */
    /* renamed from: jp.pxv.android.activity.AccountSettingActivity$d */
    /* loaded from: classes2.dex */
    public static final class C3986d extends OnTextChangedListener {
        public C3986d() {
            AccountSettingActivity.this = r1;
        }

        @Override // p109dj.OnTextChangedListener, android.text.TextWatcher
        public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
            AccountSettingActivity.m4855S0(AccountSettingActivity.this);
        }
    }

    /* compiled from: AccountSettingActivity.kt */
    /* renamed from: jp.pxv.android.activity.AccountSettingActivity$e */
    /* loaded from: classes2.dex */
    public static final class C3987e extends OnTextChangedListener {
        public C3987e() {
            AccountSettingActivity.this = r1;
        }

        @Override // p109dj.OnTextChangedListener, android.text.TextWatcher
        public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
            AccountSettingActivity.m4855S0(AccountSettingActivity.this);
        }
    }

    /* compiled from: AccountSettingActivity.kt */
    /* renamed from: jp.pxv.android.activity.AccountSettingActivity$f */
    /* loaded from: classes2.dex */
    public static final class C3988f extends OnTextChangedListener {
        public C3988f() {
            AccountSettingActivity.this = r1;
        }

        @Override // p109dj.OnTextChangedListener, android.text.TextWatcher
        public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
            AccountSettingActivity.m4855S0(AccountSettingActivity.this);
        }
    }

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.activity.AccountSettingActivity$g */
    /* loaded from: classes2.dex */
    public static final class C3989g extends Lambda implements AbstractC3435a<PixivAnalytics> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f18302a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C3989g(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f18302a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [ei.e, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final PixivAnalytics invoke() {
            return C1124a.m10173s(this.f18302a).f24118a.m920a().m621a(Reflection.m5499a(PixivAnalytics.class), null, null);
        }
    }

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.activity.AccountSettingActivity$h */
    /* loaded from: classes2.dex */
    public static final class C3990h extends Lambda implements AbstractC3435a<PixivAccountManager> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f18303a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C3990h(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f18303a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [hh.b, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final PixivAccountManager invoke() {
            return C1124a.m10173s(this.f18303a).f24118a.m920a().m621a(Reflection.m5499a(PixivAccountManager.class), null, null);
        }
    }

    /* renamed from: S0 */
    public static final void m4855S0(AccountSettingActivity accountSettingActivity) {
        AccountSettingContract aVar = accountSettingActivity.f18292w;
        if (aVar != null) {
            ActivityAccountSettingBinding aVar2 = accountSettingActivity.f18293x;
            if (aVar2 != null) {
                String valueOf = String.valueOf(aVar2.f21297u.getText());
                ActivityAccountSettingBinding aVar3 = accountSettingActivity.f18293x;
                if (aVar3 != null) {
                    String valueOf2 = String.valueOf(aVar3.f21288A.getText());
                    ActivityAccountSettingBinding aVar4 = accountSettingActivity.f18293x;
                    if (aVar4 != null) {
                        aVar.mo5516h(valueOf, valueOf2, String.valueOf(aVar4.f21300x.getText()));
                    } else {
                        MutabilityOwnership.m3737u("binding");
                        throw null;
                    }
                } else {
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("accountContractPresenter");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: A */
    public void mo4863A() {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21295s.m4595d(InfoType.LOADING, null);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: B0 */
    public void mo4862B0(String str) {
        Toast.makeText(this, str, 1).show();
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: D0 */
    public void mo4861D0() {
        super.finish();
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: F0 */
    public void mo4860F0(String str) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21289B.setError(str);
            ActivityAccountSettingBinding aVar2 = this.f18293x;
            if (aVar2 != null) {
                aVar2.f21289B.setErrorEnabled(true);
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: L */
    public void mo4859L(boolean z) {
        AccountEditActivityMode aVar = this.f18291v;
        if (aVar != null) {
            if (aVar == AccountEditActivityMode.RegisterPremium) {
                PixivAnalytics.m6529a(m4854T0(), 7, AnalyticsAction.END_REGISTERING_ACCOUNT, null, 4);
            }
            Intent intent = new Intent();
            Bundle bundle = new Bundle();
            bundle.putBoolean("result_key_should_show_mail_authorization", z);
            intent.putExtras(bundle);
            setResult(-1, intent);
            super.finish();
            return;
        }
        MutabilityOwnership.m3737u("editMode");
        throw null;
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: M */
    public void mo4858M() {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21299w.setOnClickListener(new View$OnClickListenerC0062d(this, 1));
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: N */
    public void mo4857N(boolean z) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            m7042R0(aVar.f21292E);
            if (z) {
                ActionBar P0 = m7044P0();
                if (P0 != null) {
                    P0.mo6936o(true);
                }
                ActionBar P02 = m7044P0();
                if (P02 != null) {
                    P02.mo6932s(true);
                    return;
                }
                return;
            }
            return;
        }
        MutabilityOwnership.m3737u("binding");
        throw null;
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: O */
    public void mo4856O(String str) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21302z.setError(str);
            ActivityAccountSettingBinding aVar2 = this.f18293x;
            if (aVar2 != null) {
                aVar2.f21302z.setErrorEnabled(true);
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    /* renamed from: T0 */
    public final PixivAnalytics m4854T0() {
        return (PixivAnalytics) this.f18294y.getValue();
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: Z */
    public void mo4853Z(int i) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21296t.setVisibility(i);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: c0 */
    public void mo4852c0(int i) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21292E.setTitle(i);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: d0 */
    public void mo4851d0(View.OnClickListener onClickListener) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21295s.m4595d(InfoType.UNKNOWN_ERROR, onClickListener);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: f0 */
    public void mo4850f0() {
        Toast.makeText(this, (int) R.string.error_default_message, 1).show();
    }

    @Override // android.app.Activity
    public void finish() {
        AccountSettingContract aVar = this.f18292w;
        if (aVar != null) {
            aVar.mo5522b();
        } else {
            MutabilityOwnership.m3737u("accountContractPresenter");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: i0 */
    public void mo4849i0() {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21288A.setInputType(0);
            ActivityAccountSettingBinding aVar2 = this.f18293x;
            if (aVar2 != null) {
                aVar2.f21288A.setEnabled(false);
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: k */
    public void mo4848k(String str) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21297u.setText(str);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: k0 */
    public void mo4847k0() {
        int i = ((PixivAccountManager) this.f18295z.getValue()).f16503i ? R.string.settings_pixiv_id_description_for_premium : R.string.settings_pixiv_id_description;
        GenericDialogFragment.C4250a aVar = GenericDialogFragment.f19066f;
        String string = getString(R.string.settings_pixiv_id_title);
        MutabilityOwnership.m3746l(string, "getString(jp.pxv.android….settings_pixiv_id_title)");
        String string2 = getString(i);
        String string3 = getString(R.string.settings_pixiv_id_change);
        MutabilityOwnership.m3746l(string3, "getString(jp.pxv.android…settings_pixiv_id_change)");
        GenericDialogFragment a = GenericDialogFragment.C4250a.m4606a(aVar, string, string2, string3, getString(R.string.common_cancel), PostAccountSettingWithPixivIdChange.f18289a, null, 32);
        FragmentManager K0 = m11131K0();
        MutabilityOwnership.m3746l(K0, "supportFragmentManager");
        StringMerger.m2843s(K0, a, "fragment_tag_dialog");
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: l0 */
    public void mo4846l0(int i) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21290C.setText(i);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: m0 */
    public void mo4845m0() {
        int i = ((PixivAccountManager) this.f18295z.getValue()).f16503i ? R.string.settings_can_change_pixiv_id_only_once_for_premium : R.string.settings_can_change_pixiv_id_only_once;
        GenericDialogFragment.C4250a aVar = GenericDialogFragment.f19066f;
        String string = getString(R.string.settings_cant_change_pixiv_id);
        MutabilityOwnership.m3746l(string, "getString(jp.pxv.android…ngs_cant_change_pixiv_id)");
        String string2 = getString(i);
        String string3 = getString(R.string.common_ok);
        MutabilityOwnership.m3746l(string3, "getString(jp.pxv.android…egacy.R.string.common_ok)");
        GenericDialogFragment a = GenericDialogFragment.C4250a.m4606a(aVar, string, string2, string3, null, null, null, 56);
        FragmentManager K0 = m11131K0();
        MutabilityOwnership.m3746l(K0, "supportFragmentManager");
        StringMerger.m2843s(K0, a, "fragment_tag_dialog");
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: n0 */
    public void mo4844n0() {
        C5453b.m3264m(this);
        PasswordInputFragment f = PasswordInputFragment.m4605f(PasswordInputFragment.InputType.NewPassword.f19069a);
        FragmentManager K0 = m11131K0();
        MutabilityOwnership.m3746l(K0, "supportFragmentManager");
        StringMerger.m2843s(K0, f, "fragment_tag_dialog");
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21291D.requestFocus();
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, p248j2.ActivityC3902g, android.app.Activity
    public void onCreate(Bundle bundle) {
        AccountSettingContract aVar;
        super.onCreate(bundle);
        Fragment F = m11131K0().m11279F("fragment_tag_dialog");
        DialogFragment mVar = F instanceof DialogFragment ? (DialogFragment) F : null;
        if (mVar != null) {
            mVar.dismiss();
        }
        Fragment F2 = m11131K0().m11279F("fragment_tag_password_confirm_dialog");
        DialogFragment mVar2 = F2 instanceof DialogFragment ? (DialogFragment) F2 : null;
        if (mVar2 != null) {
            mVar2.dismiss();
        }
        ViewDataBinding d = DataBindingUtil.m11369d(this, R.layout.activity_account_setting);
        MutabilityOwnership.m3746l(d, "setContentView(this, R.l…activity_account_setting)");
        this.f18293x = (ActivityAccountSettingBinding) d;
        Serializable serializableExtra = getIntent().getSerializableExtra("EDIT_MODE");
        Objects.requireNonNull(serializableExtra, "null cannot be cast to non-null type jp.pxv.android.legacy.constant.AccountEditActivityMode");
        AccountEditActivityMode aVar2 = (AccountEditActivityMode) serializableExtra;
        this.f18291v = aVar2;
        int ordinal = aVar2.ordinal();
        if (ordinal == 0) {
            m4854T0().m6524f(AnalyticsScreenName.ACCOUNT_SETTINGS, null);
            aVar = (AccountSettingContract) C1124a.m10173s(this).f24118a.m920a().m621a(Reflection.m5499a(AccountSettingEditModePresenter.class), null, new C3983a());
        } else if (ordinal == 1) {
            m4854T0().m6524f(AnalyticsScreenName.ACCOUNT_REGISTER, null);
            aVar = (AccountSettingContract) C1124a.m10173s(this).f24118a.m920a().m621a(Reflection.m5499a(AccountSettingRegisterModePresenter.class), null, new C3984b());
        } else if (ordinal == 2) {
            m4854T0().m6524f(AnalyticsScreenName.ACCOUNT_REGISTER_PREMIUM, null);
            PixivAnalytics.m6529a(m4854T0(), 7, AnalyticsAction.START_REGISTERING_ACCOUNT, null, 4);
            aVar = (AccountSettingContract) C1124a.m10173s(this).f24118a.m920a().m621a(Reflection.m5499a(AccountSettingRegisterPremiumModePresenter.class), null, new C3985c());
        } else {
            throw new NoWhenBranchMatchedException();
        }
        this.f18292w = aVar;
        ActivityAccountSettingBinding aVar3 = this.f18293x;
        if (aVar3 != null) {
            aVar3.f21288A.addTextChangedListener(new C3986d());
            ActivityAccountSettingBinding aVar4 = this.f18293x;
            if (aVar4 != null) {
                aVar4.f21300x.addTextChangedListener(new C3987e());
                ActivityAccountSettingBinding aVar5 = this.f18293x;
                if (aVar5 != null) {
                    aVar5.f21297u.addTextChangedListener(new C3988f());
                    ActivityAccountSettingBinding aVar6 = this.f18293x;
                    if (aVar6 != null) {
                        aVar6.f21296t.setOnClickListener(new View$OnClickListenerC0062d(this, 0));
                        ActivityAccountSettingBinding aVar7 = this.f18293x;
                        if (aVar7 != null) {
                            aVar7.f21294r.setOnClickListener(new View$OnClickListenerC0050b(this, 0));
                            ActivityAccountSettingBinding aVar8 = this.f18293x;
                            if (aVar8 != null) {
                                aVar8.f21293q.setOnClickListener(new View$OnClickListenerC0046a(this, 0));
                                ActivityAccountSettingBinding aVar9 = this.f18293x;
                                if (aVar9 != null) {
                                    aVar9.f21290C.setOnClickListener(new View$OnClickListenerC0054c(this, 0));
                                    m11131K0().m11251d0("request_key_password_input_fragment", this, new C7301s(this, 4));
                                    m11131K0().m11251d0("fragment_request_key_generic_dialog_fragment", this, new C7296l(this, 2));
                                    AccountSettingContract aVar10 = this.f18292w;
                                    if (aVar10 != null) {
                                        aVar10.mo5523a();
                                    } else {
                                        MutabilityOwnership.m3737u("accountContractPresenter");
                                        throw null;
                                    }
                                } else {
                                    MutabilityOwnership.m3737u("binding");
                                    throw null;
                                }
                            } else {
                                MutabilityOwnership.m3737u("binding");
                                throw null;
                            }
                        } else {
                            MutabilityOwnership.m3737u("binding");
                            throw null;
                        }
                    } else {
                        MutabilityOwnership.m3737u("binding");
                        throw null;
                    }
                } else {
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p116e.ActivityC2727f, androidx.fragment.app.FragmentActivity, android.app.Activity
    public void onDestroy() {
        AccountSettingContract aVar = this.f18292w;
        if (aVar != null) {
            aVar.onDestroy();
            super.onDestroy();
            return;
        }
        MutabilityOwnership.m3737u("accountContractPresenter");
        throw null;
    }

    @Override // androidx.activity.ComponentActivity, android.app.Activity
    public boolean onOptionsItemSelected(MenuItem menuItem) {
        MutabilityOwnership.m3745m(menuItem, "item");
        if (menuItem.getItemId() != 16908332) {
            return super.onOptionsItemSelected(menuItem);
        }
        this.f940i.m12030b();
        return true;
    }

    @Override // androidx.fragment.app.FragmentActivity, android.app.Activity
    public void onPause() {
        View currentFocus = getCurrentFocus();
        if (currentFocus != null) {
            currentFocus.clearFocus();
        }
        super.onPause();
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: p0 */
    public void mo4843p0(int i) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21293q.setVisibility(i);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: q */
    public void mo4842q(int i) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21296t.setText(i);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: s */
    public void mo4841s() {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21295s.m4598a();
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: s0 */
    public void mo4840s0(int i) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21301y.setVisibility(i);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: t */
    public void mo4839t(String str) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21298v.setError(str);
            ActivityAccountSettingBinding aVar2 = this.f18293x;
            if (aVar2 != null) {
                aVar2.f21298v.setErrorEnabled(true);
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: t0 */
    public void mo4838t0() {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21298v.setError("");
            ActivityAccountSettingBinding aVar2 = this.f18293x;
            if (aVar2 != null) {
                aVar2.f21298v.setErrorEnabled(false);
                ActivityAccountSettingBinding aVar3 = this.f18293x;
                if (aVar3 != null) {
                    aVar3.f21289B.setError("");
                    ActivityAccountSettingBinding aVar4 = this.f18293x;
                    if (aVar4 != null) {
                        aVar4.f21289B.setErrorEnabled(false);
                        ActivityAccountSettingBinding aVar5 = this.f18293x;
                        if (aVar5 != null) {
                            aVar5.f21302z.setError("");
                            ActivityAccountSettingBinding aVar6 = this.f18293x;
                            if (aVar6 != null) {
                                aVar6.f21302z.setErrorEnabled(false);
                            } else {
                                MutabilityOwnership.m3737u("binding");
                                throw null;
                            }
                        } else {
                            MutabilityOwnership.m3737u("binding");
                            throw null;
                        }
                    } else {
                        MutabilityOwnership.m3737u("binding");
                        throw null;
                    }
                } else {
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: u */
    public void mo4837u(String str) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21288A.setText(str);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: w0 */
    public void mo4836w0() {
        C5453b.m3264m(this);
        PasswordInputFragment f = PasswordInputFragment.m4605f(PasswordInputFragment.InputType.CurrentPassword.f19068a);
        FragmentManager K0 = m11131K0();
        MutabilityOwnership.m3746l(K0, "supportFragmentManager");
        StringMerger.m2843s(K0, f, "fragment_tag_password_confirm_dialog");
    }

    @Override // p209hg.AbstractC3607b
    /* renamed from: z */
    public void mo4835z(boolean z) {
        ActivityAccountSettingBinding aVar = this.f18293x;
        if (aVar != null) {
            aVar.f21290C.setEnabled(z);
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }
}
